/*  Copyright (C) 2008 Clement leger
 *
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation; by version 2 of the License.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 *
 */

#include <X11/Xlib.h>

//X keycodes
#define ARROW_UP	98
#define ARROW_DOWN	104
#define ARROW_LEFT	100
#define ARROW_RIGHT	102
#define ENTER		36
#define SPACE		65
#define ESC			9
#define DEL			22
#define F5			71
#define KEY_F		41
#define KEY_T		28
#define KEY_N		57
#define KEY_P		33

#define MOUSE_BUTTON_PRESS	2
#define MOUSE_BUTTON_RELEASE	3
#define MOUSE_BUTTON_RIGHT	4
#define MOUSE_BUTTON_LEFT	5
#define MOUSE_BUTTON_MIDDLE	6
#define MOUSE_SCROLL_UP		7
#define MOUSE_SCROLL_DOWN	8



Display* construct_display();
int destroy_display(Display *active_display);
int send_event( int keycode, Display *active_display);
int mouse_move(int x, int y, Display *active_display);
int mouse_click(int mouse_button, int button_status, Display *active_display);
